require 'dbi'
constr = "DBI:ADO:Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=ucar;User Id=sa;Password=800920;"
db = DBI.connect(constr);
sth = db.prepare("select * from TB_ANNI")
sth.execute

while row = sth.fetch do
  puts row['Contents'] 
end

db.disconnect
